var $ = require('../../../utils/helper.js'), that = null
var WxParse = require('../../../wxParse/wxParse.js')
var app = getApp()
Page({
  data: {

  },
  onLoad(e) {
    that = this
    let id = e.id
    that.setData({id:id})  
  },
  onShow: function () {
    $.check(that)
  },
  onReady: function () {

  },
  init: function () {

    that.artivle_detail()
  },
  artivle_detail:function(){
    $.post("api/news/get",{id:that.data.id},function(data){
      that.setData({artivle:data})
      WxParse.wxParse('detail', 'html', data.detail, that, 0)
    })
  },

}) 